<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script>
	function dosurefinish(){
		if(confirm("你确定执行此操作?"))
		{
			$("#theFrom").submit();
		}
	}
	function checkDecimal(obj) {
		var decimalReg=/^\d{0,9}\)?$/; //只能输入数字
		if(obj.value!=""&&decimalReg.test(obj.value)){
		}else {
			if (obj.value != "") {
				//alert('非法值！请重新输入！');return ;
				obj.value = 0
			}
		}
	}
</script>
<title>确认完成</title>
<body class="withvernav">
<div class="bodywrapper"> {{include file='/public/leftmenu.tpl'}}
	<div class="centercontent">
		<div class="pageheader notab">
			<h1 class="pagetitle">运输任务sku数量</h1>
			<span class="pagedesc"></span>
			<div class="menulist">
				<ul class="profile_summary">
					<li class="current"></li>
				</ul>
			</div>
		</div>
		<!--pageheader-->

		<div id="contentwrapper" class="contentwrapper">
			<div id="basicform" class="subcontent">
				<form class="stdform stdform2"  id="theFrom" method="post" action="/oversea/ajaxbutton">

					<div class="contenttitle2">
						<h3>运输SKU列表</h3>
					</div>
					<table cellpadding="0" cellspacing="0" border="0" class="stdtable" id="addTable" >
						<colgroup>
							<col class="con1" />
							<col class="con0" />
							<col class="con1" />
							<col class="con0" />
							<col class="con1" />
							<col class="con0" />
							<col class="con1" />
						</colgroup>
						<thead>
						<tr>
							<th class="head0">任务编号</th>
							<th class="head0">sku</th>
							<th class="head1">发货数量</th>
							<th class="head1">实际到货数量</th>
						</tr>
						</thead>
						<tbody>
						{{foreach from=$skulist item=li key=key}}
							<tr>
								<td>{{$li.tasknumber}}</td>
								<td><a href="/product/productlist?other={{$li.sku}}" target="_blank">{{$li.sku}}</a> </td>
								<td>{{$li.nowbuynum}}</td>
								<td>
									<input type="text" value="{{$li.nowbuynum}}" name="{{$li.sku}}" style="width:150px;" onblur='checkDecimal(this)'>
								</td>
							</tr>
						{{/foreach}}
						</tbody>
						<tfoot>
						</tfoot>
					</table><br/>
					<input type="hidden" value="changstatus" name="op">
					<input type="hidden" value="5" name="t">
					<input type="hidden" value="{{$taskId}}" name="id">
					<input type="hidden" value="2" name="type">
					<input type="hidden" value="{{$oversea_startId}}" name="oversea_startId">
					<input type="hidden" value="{{$oversea_destinationId}}" name="oversea_destinationId">
					<button class="stdbtn btn_yellow" onClick="dosurefinish();">确认完成</button>&nbsp;&nbsp;&nbsp;
				</form>
				<br />
			</div>
			<!--subcontent-->

			<!--subcontent-->

		</div>
		<!--contentwrapper-->

	</div>
	<!-- centercontent -->

</div>
</body>
</html>